package com.it.plic;

import java.util.concurrent.CountDownLatch;

/**
 * @author げっしょく
 * @date 2021/8/8
 */
public class Demo2 {
    public static void main(String[] args) {
        CountDownLatch cdl = new CountDownLatch(3);
        D2Monther t1 = new D2Monther(cdl);
        D2haizi1 t2 = new D2haizi1(cdl);
        D2haizi2 t3 = new D2haizi2(cdl);
        D2haizi3 t4 = new D2haizi3(cdl);
        t1.setName("投食官");
        t2.setName("秋田");
        t3.setName("英短");
        t4.setName("橘猫");
        t1.start();
        t2.start();
        t3.start();
        t4.start();
    }
}
